package me.zhengjie.modules.equipment.service;

import me.zhengjie.modules.equipment.domain.TEqpttype;
import me.zhengjie.modules.equipment.service.dto.TEqpttypeDTO;
import me.zhengjie.modules.equipment.service.dto.TEqpttypeQueryCriteria;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.domain.Pageable;

/**
* @author sw
* @date 2019-07-19
*/
public interface TEqpttypeService {

    /**
    * queryAll 分页
    * @param criteria
    * @param pageable
    * @return
    */
    Object queryAll(TEqpttypeQueryCriteria criteria, Pageable pageable);

    /**
    * queryAll 不分页
    * @param criteria
    * @return
    */
    public Object queryAll(TEqpttypeQueryCriteria criteria);

    /**
     * findById
     * @param id
     * @return
     */
    TEqpttypeDTO findById(Integer id);

    /**
     * create
     * @param resources
     * @return
     */
    TEqpttypeDTO create(TEqpttype resources);

    /**
     * update
     * @param resources
     */
    void update(TEqpttype resources);

    /**
     * delete
     * @param id
     */
    void delete(Integer id);
}